// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'

// 导入static 自定义css文件
import '../static/css/global.css'


Vue.config.productionTip = false

// 引入 mint-ui 引入全部组件
import Mint from 'mint-ui';
Vue.use(Mint);
import 'mint-ui/lib/style.css'


// 配置公共url
axios.defaults.baseURL = 'http://192.168.56.1:9990/api/v1/'
// 配置axios
Vue.prototype.$http= axios

// 注册全局组件
import Navbar from '@/components/common/Navbar'
Vue.component(Navbar.name, Navbar)


import Moment from 'moment'
// 自定义moment全局过滤器
Vue.filter('timeFormat', function(data, formatStr){
  return Moment(data).format(formatStr);
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
